package com.teamwork.common.entity.module01;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.web.bind.annotation.PathVariable;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_module01_student")
public class Student {

        Long         id;
        Long        stuId       ;
        Long      userId     ;
        String    nickname     ;
        String        name     ;
        String    sex          ;
        Integer    classId     ;
        Integer    subjectId   ;
        Integer    academyId   ;
        @JsonFormat(pattern = "yyyy-MM-dd")
        LocalDate inschooldate ;
        String    icon         ;
        String    phone        ;
        String    address      ;
        String    introduction ;
 @TableField(value = "createtime",fill = FieldFill.INSERT)
 @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
 LocalDateTime createtime;
 @TableField(value = "updatetime",fill = FieldFill.INSERT_UPDATE)
 @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
 LocalDateTime  updatetime;



}
